import request from '@/utils/request'

/**
 * 查询设备分类列表
 * @deprecated
 */
export function listDeviceCategory(query) {
  return request({
    url: '/hospital/deviceCategory/list',
    method: 'get',
    params: query
  })
}

/**
 * 查询设备分类列表
 * @deprecated
 */
export function allListDeviceCategory(query) {
  return request({
    url: '/hospital/deviceCategory/queryAll',
    method: 'get',
    params: query
  })
}

/**
 * 查询设备分类列表
 * @deprecated
 */
export function allOptionDeviceCategory(query) {
  return request({
    url: '/hospital/deviceCategory/option',
    method: 'get',
    params: query
  })
}

/**
 * 查询设备分类详细
 * @deprecated
 */
export function getDeviceCategory(categoryId) {
  return request({
    url: '/hospital/deviceCategory/' + categoryId,
    method: 'get'
  })
}


/**
 * 新增设备分类
 * @deprecated
 */
export function addDeviceCategory(data) {
  return request({
    url: '/hospital/deviceCategory',
    method: 'post',
    data: data
  })
}

/**
 * 修改设备分类
 * @deprecated
 */
export function updateDeviceCategory(data) {
  return request({
    url: '/hospital/deviceCategory',
    method: 'put',
    data: data
  })
}

/**
 * 删除设备分类
 * @deprecated
 */
export function delDeviceCategory(categoryId) {
  return request({
    url: '/hospital/deviceCategory/' + categoryId,
    method: 'delete'
  })
}

/**
 * 设备分类树
 * @deprecated
 */
export function getTree() {
  return request({
    url: '/hospital/deviceCategory/tree',
    method: 'get'
  })
}
// 监控硬件设备列表 
export function getWarnAppList(data) {
  return request({
    url: '/hospital/warning/appList',
    method: 'get',
    data
  })
}
//科室列表
export function queryDepartmentList(params) {
  return request({
    url: '/hospital/department/queryAll',
    method: 'get',
    params
  })
}
// 查询参数信息列表 (注册因子)
export function getSelectParamList(data) {
  return request({
    url: `/hospital/warning/selectParamList/${data}`,
    method: 'get',
  })
}